/**
 * @author chedim
 */

 
var currentRecord = { 
 	path: 'self,group,$user.',
	where: 'user.id = self.id'
};


function navigateDatorTo(rp, rf) {
	var param = {
		path: rp,
		where: rf
	}
	var cv = new MVC.View();
	cv.call('ds.parents', param, 'dator-parents');
	Xendri.JSON.call('ds', 'childs', param, displayChilds);
	
}

function displayChilds(result) {
	
}

function displayParents(result) {
	
}

navigateDatorTo(currentRecord.path, currentRecord.where);